package com.example.othree.common;

public class CommonMessage {

    /**
     * 客户端类型
     */
    public enum Client {
        /**
         * 后台客户端
         */
        ADMIN("admin");

        public final String client;

        Client(String s) {
            this.client = s;
        }
    }

    /**
     * 权限
     */
    public static class Role {
        public static final Long BOSS_ROLE = 6L;
        public static final Long LARGE_GROUPER_ROLE = 7L;
        public static final Long SMALL_GROUPER_ROLE = 8L;
        public static final Long WORKER_ROLE = 9L;
        public static final Long MERCHANTS_ROLE = 10L;
    }


    /**
     * redis缓存
     */
    public enum Cache {
        /**
         * admin登录token
         */
        UMS_ADMIN_TOKEN("token:");

        public final String prefix;

        Cache(String s) {
            this.prefix = s;
        }

        /**
         * 获取拼装后的key
         *
         * @param id id
         * @return 拼装后的key
         */
        public String getKey(String id) {
            return this.prefix + id;
        }
    }

        public static final Integer UN_PAY_CONFIRM_STATUS = 0;
        public static final Integer ALREADY_PAY_CONFIRM_STATUS = 1;

        public static final Integer VOUCHER_PICS_MAX_COUNT = 10;
}
